package com.byedu.domain.course.vo;

import com.byedu.domain.course.CourseAnalysisDO;
import com.byedu.domain.course.GuideInforDO;

/**
 * Created by Luo on 2017-09-20.
 */
public class CourseAnalysisVO {

    private int id;
    /*开始时间*/
    private String start_time;
    /*结束时间*/
    private String end_time;
    /*名称*/
    private String name;
    /*链接*/
    private String url;
    /*介绍*/
    private String intro;
    /*图片*/
    private String img;

    private boolean top;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public boolean isTop() {
        return top;
    }

    public void setTop(boolean top) {
        this.top = top;
    }

    public CourseAnalysisVO() {
    }

    public CourseAnalysisVO(CourseAnalysisDO courseAnalysisDO) {
        this.id = courseAnalysisDO.getId();
        this.start_time = courseAnalysisDO.getStart_time();
        this.end_time = courseAnalysisDO.getEnd_time();
        this.name = courseAnalysisDO.getName();
        this.url = courseAnalysisDO.getUrl();
        this.intro = courseAnalysisDO.getIntro();
//        System.out.println("guideInforDO:"+guideInforDO.getTop());
        this.img = courseAnalysisDO.getImg();
        if(courseAnalysisDO.getTop() == 1) {
            this.top = true;
        }
    }

    @Override
    public String toString() {
        return "GuideInforVO{" +
                "id='" + id + '\'' +
                ", start_time='" + start_time + '\'' +
                ", end_time='" + end_time + '\'' +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", intro='" + intro + '\'' +
                ", img='" + img + '\'' +
                ", top=" + top +
                '}';
    }
}
